package cn.iocoder.yudao.module.crm.controller.admin.course.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import java.util.Set;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 课程套餐分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CoursePackagePageReqVO extends PageParam {

    @Schema(description = "所属栏目")
    private Long subjectId;

    @Schema(description = "套餐名称", example = "张三")
    private String name;

    @Schema(description = "套餐图片")
    private String icon;

    @Schema(description = "套餐内容")
    private String content;

    @Schema(description = "套餐类型", example = "2")
    private String type;

    @Schema(description = "原价", example = "13134")
    private BigDecimal originalPrice;

    @Schema(description = "销售价", example = "26306")
    private BigDecimal salePrice;

    @Schema(description = "成本价", example = "3526")
    private BigDecimal costPrice;

    @Schema(description = "协议ID，外键关联crm_protocol表", example = "13302")
    private Long protocolId;

    @Schema(description = "展示顺序")
    private Integer sort;

    @Schema(description = "套餐状态", example = "2")
    private Integer coursePackageStatus;

    @Schema(description = "有效期类型", example = "1")
    private String expirationType;

    @Schema(description = "开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] beginDate;

    @Schema(description = "结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] endDate;

    @Schema(description = "首页显示状态。{ 0：显示；1：隐藏；}", example = "1")
    private Integer homeShowStatus;

    @Schema(description = "是否已禁用。{ 0：正常；1：禁用；}", example = "1")
    private Integer status;

    @Schema(description = "备注", example = "你猜")
    private String remark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "老师")
    private Set<Long> teacherIds;

    @Schema(description = "栏目ID集合")
    private Set<Long> subjectIds;

}